package com.example.aerospacemanagementsystem.service.attendanceService.impl;


import com.example.aerospacemanagementsystem.entity.attendance.Attendance;

import com.example.aerospacemanagementsystem.mapper.attendanceMapper.AttendanceMapper;

import com.example.aerospacemanagementsystem.service.attendanceService.AttendanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 李明国
* @description 针对表【attendance】的数据库操作Service实现
* @createDate 2023-10-20 15:21:22
*/
@Service
public class AttendanceServiceImpl implements AttendanceService{
    @Autowired
    private AttendanceMapper attendanceMapper;

    @Override
    public int add(Attendance attendance) {
        return attendanceMapper.insert(attendance);
    }

    @Override
    public int delete(Attendance attendance) {
        return attendanceMapper.delete(attendance);
    }

    @Override
    public int update(Attendance attendance) {
        return attendanceMapper.update(attendance);
    }

    @Override
    public List<Attendance> getAllAttendance(Attendance attendance) {
        return attendanceMapper.getAllAttendance(attendance);
    }

    }





